package com.zdsoft.wms.feign;

import com.zdsoft.wms.common.ServerResponse;
import com.zdsoft.wms.feign.fallback.UserClientFallBackFactory;
import com.zdsoft.wms.interceptor.TokenRelayInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
//这边服务名称鼻血小写？
@FeignClient(name = "user-center",path = "/user",fallbackFactory = UserClientFallBackFactory.class)
public interface UserFeignClient {
    @GetMapping("/serinfo/{serstation}")
    ServerResponse findAllBySerstationId(@PathVariable("serstation") int serstationId);


    @GetMapping("/info/{id}")
    ServerResponse findInfoById(@PathVariable("id") int id);
}
